package com.wswy.wyjk.ui.practiceNew.Adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.wswy.wyjk.R;
import com.wswy.wyjk.ui.practiceNew.Model.FractionRecord;


public class ExamRecordAdapter extends BaseQuickAdapter<FractionRecord, BaseViewHolder> {

    public ExamRecordAdapter() {
        super(R.layout.item_layout_exam_record);
    }

    @Override
    protected void convert(BaseViewHolder helper, FractionRecord fractionRecord) {
        helper.setText(R.id.tv_exam_score, fractionRecord.getFraction() + "分")
                .setText(R.id.tv_exam_time, "用时: " + fractionRecord.getTime())
                .setText(R.id.tv_exam_create_time, fractionRecord.getDate());
    }
}
